package com.shambles.manage2.tkmapper.mapper;

import com.shambles.manage2.tkmapper.entity.QuarantineStuff;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.additional.insert.InsertListMapper;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface QuarantineStuffMapper extends Mapper<QuarantineStuff>, InsertListMapper<QuarantineStuff> {
    /**
     * 查询接口
     * @param
     */
    @Select("select * from quarantine_stuff")
    List<QuarantineStuff> querQuarantineStuffAll();

    /**
     * 删除材料
     */
    @Delete("delete from quarantine_stuff where guid='${guid}'")
    void deleteQuarantineStuff(@Param("guid") String guid);

    /**
     * 修改材料
     */
    void updateQuarantineStuff(QuarantineStuff quarantineStuff);

    /**
     * 添加材料
     */
    void insertQuarantineStuff(QuarantineStuff quarantineStuff);
}